package com.night.icm.persistence.base.repository;

import com.night.icm.persistence.base.entity.Profession;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * ProfessionRepository
 *
 * @author Liao ZhiYong
 * @date 2020/1/7
 */
@Repository
public interface ProfessionRepository extends JpaRepository<Profession, Long>, JpaSpecificationExecutor<Profession> {

    /**
     * 根据code查找专业
     *
     * @param code 专业编号
     * @return 专业
     */
    Profession findByCode(String code);
}
